package com.talkyoung.ptbpro.service;

import com.talkyoung.ptbpojo.entity.UserPermission;
import com.talkyoung.ptbpojo.entity.UserPermissionExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Talkyoung
 * @Date 2020/2/29 13:36
 * @Version 1.0
 */
public interface UserPermissionService {
    int countByExample(UserPermissionExample example);

    int deleteByExample(UserPermissionExample example);

    int deleteByPrimaryKey(Long id);

    int insert(UserPermission record);

    int insertSelective(UserPermission record);

    List<UserPermission> selectByExample(UserPermissionExample example);

    UserPermission selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") UserPermission record, @Param("example") UserPermissionExample example);

    int updateByExample(@Param("record") UserPermission record, @Param("example") UserPermissionExample example);

    int updateByPrimaryKeySelective(UserPermission record);

    int updateByPrimaryKey(UserPermission record);

    List<UserPermission> selectAuthoritiesByUserId(Integer userId);
}
